﻿using Api.Example;
using System;
using System.Threading;
using Zbus.Mq;
using Zbus.Rpc;

namespace Zbus.Examples
{
    class RpcProcessorExample
    { 
        static void Main(string[] args)
        {
            var b = new ServiceBootstrap();
            b.AddModule("InterfaceExample", new MyService()); //Simple?   

            b.ServiceAddress = "localhost:15555"; // "localhost:15555;localhost15556", try HA?
            b.ServiceName = "MyRpc";  
            b.Start(); 
        }
    }
}
